<?php

namespace app\lib\pay;

abstract class Pay
{

    # 服务商APPID
    protected $app_id;
    # 服务商密钥
    protected $app_secret;
    #商家号
    protected $mch_id;
    #v2密钥
    protected $api_v2;
    #v3密钥
    protected $api_v3;
    # API证书
    protected $cert_path;
    protected $key_path;
    protected $rsa_public_key_path;

    /**
     * Files constructor.
     */
    public function __construct()
    {

        $this->app_id = config()['pay']['app_id'];
        $this->app_secret = config()['pay']['app_secret'];
        $this->mch_id = config()['pay']['mch_id'];
        $this->api_v2 = config()['pay']['api_v2'];
        $this->api_v3 = config()['pay']['api_v3'];
        $this->cert_path = config()['pay']['cert_path'];
        $this->key_path = config()['pay']['key_path'];
        $this->rsa_public_key_path = config()['pay']['rsa_public_key_path'];
    }
}
